<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const obj = Object.create(null,{
            name:{
                value:'laowang',
                // 控制当前属性是否可以被修改
                writable:true,
                // 控制当前属性是否可以被枚举
                enumerable:true,
                // 控制当前属性是否可以被删除
                configurable:true
            }
        })
        console.log('obj',obj);

        console.log('修改obj',(obj.name='laoli'),obj);

        for(let key in obj){
            console.log('枚举',key);
        }

        console.log('删除obj',delete obj.name, obj);
    </script>
</body>
</html>